package com.lzy.product.apis.impl;

import com.lzy.product.apis.AgentProductProjectServiceApi;
import com.lzy.product.dtos.agent.AgentProductProjectDto;
import com.lzy.product.service.AgentProductProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * Created by WIN7 on 2018/04/14.
 */
@Service
public class AgentProductProjectServiceApiImpl implements AgentProductProjectServiceApi {

    @Autowired
    AgentProductProjectService agentProductProjectService;

    @Override
    public Long insert(AgentProductProjectDto dto) {
        return agentProductProjectService.insert(dto);
    }

    @Override
    public Boolean update(AgentProductProjectDto dto) {
        return agentProductProjectService.update(dto);
    }

    @Override
    public Boolean delete(Long id) {
        return agentProductProjectService.delete(id);
    }

    @Override
    public Boolean remove(Long id) {
        return agentProductProjectService.remove(id);
    }

    @Override
    public AgentProductProjectDto findById(Long id) {
        return agentProductProjectService.findById(id);
    }

    @Override
    public List<AgentProductProjectDto> query(AgentProductProjectDto dto) {
        return agentProductProjectService.query(dto);
    }

    @Override
    public List<AgentProductProjectDto> selectByProtocolId(Long protocolId,Integer model) {
        return agentProductProjectService.queryAgentProductProject(protocolId,model);
    }

    @Override
    public Boolean deleteByProtocolId(Long protocolId,Integer model) {
        return agentProductProjectService.deleteByProtocolId(protocolId,model);
    }

    @Override
    public List<AgentProductProjectDto> selectByOrderId(Long orderId) {
        return agentProductProjectService.selectByOrderId(orderId);
    }
}
